import axios from 'axios'

/** 
* 拨打电话
 */
export const callPhone = (params) => (axios.post('/pbxapi/pbx/call', params));

/**
 * 
 * 电话记录
 * 不传参，返回所有结果；传参进行条件查询
 */
export const callQuery = (params) => (axios.post('/pbxapi/pbx/call-query', params));

/**
 * 查询线路信息
 */ 

 export const getChannel = (params) => (axios.post('/pbxapi/pbx/context-query', params));

 /**
  * 
  */